set(src_list
    externalinput.cc
    sal.cc
    log.cc
    workflow.cc
    hccl_dl.cc
    hccl_ip_address.cc
    dlhal_function.cc
    dlibv_function.cc
    dlra_function.cc
    dltdt_function.cc
    mr_manager.cc
    peterson_lock.cc
    dlhdds_function.cc
    dlqos_function.cc
    device_capacity.cc
    dlprof_func.cc
    dltrace_function.cc
    dlhns_function.cc
)

target_sources(hccl_plf PRIVATE
    ${src_list}
)

target_sources(ccl_kernel PRIVATE
    ${src_list}
)

target_sources(hccd PRIVATE
    ${src_list}
)

add_subdirectory(adapter)
add_subdirectory(misc)
add_subdirectory(p2p_mgmt)